<%@page import="member.MemberVo"%>
<%@page import="java.util.Vector"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>jqm_member_list</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"/>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>

<style>
.div_first{
text-align:center;
border:2px solid #dddddd;
padding:5px;
}

</style>

<script>
function getId(id){return document.getElementById(id);}

function init(){
	getId('btnFind').onclick=findFunc;
	getId('find').onkeyup=function(ev){

		if(ev.keyCode==13) findFunc;
		
	}
}
function findFunc(){
	var find=getId('find').value;
	location.href='index.jsp&mid='+find;
	
}


</script>

</head>



<body>
<jsp:useBean id="bean" class="member.Login" scope="page"/>
<jsp:setProperty property="*" name="bean"/>

<% Vector<MemberVo> v= bean.list();%>


<div data-role='page' id='memberList'>
<div data-role='header' data-position='fixed'><h1>회원현황</h1></div>

<div data-role='content'>

		<form method='post' action='jqm_member_list.jsp'>
		
			<input type="search" name='mid' autocomplete="off" value='<%=bean.getMid()%>'>
			<input type="submit" value='검색' data-inline='true'>

		</form>	
		

		<div class='ui-grid-c ui-bar-c'>
				<div class='ui-block-a div_first ui-bar-e'>순번</div>
				<div class='ui-block-b div_first ui-bar-e'>아이디</div>
				<div class='ui-block-c div_first ui-bar-e'>이름</div>
				<div class='ui-block-d div_first ui-bar-e'>전화번호</div>	
						
				<%for(int i=0; i<v.size(); i++){
					MemberVo m= v.get(i);%>
				<div class='ui-block-a div_first ui-bar-c'><%=(i+1) %></div>
				<div class='ui-block-b div_first ui-bar-c'><%=m.getMid() %></div>
				<div class='ui-block-c div_first ui-bar-c'><%=m.getIrum() %></div>
				<div class='ui-block-d div_first ui-bar-c'><%=m.getPhone() %></div>				

		<%}%>
		</div>		
</div>

<div data-role='footer' data-position='fixed'><h1>중앙HTA</h1></div>
</div>
			<script>init();</script>
</body>
</html>